package com.example.commons.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 用户权限关联表
 */
@Data
@TableName
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UserRightRelation {
    /**
     * 用户id
     */
    @TableId(type = IdType.AUTO)
    private Long userId;
    /**
     * 权限id
     */
    private Long rightId;
    /**
     * 创建时间
     */
    private Date create_time;
}
